import request from '@/utils/request'

// 查询薪资计算项列表
export function listSalaryoptions(query) {
  return request({
    url: '/business/salaryoptions/list',
    method: 'get',
    params: query
  })
}

// 查询薪资计算项详细
export function getSalaryoptions(id) {
  return request({
    url: '/business/salaryoptions/' + id,
    method: 'get'
  })
}

// 新增薪资计算项
export function addSalaryoptions(data) {
  return request({
    url: '/business/salaryoptions',
    method: 'post',
    data: data
  })
}

// 修改薪资计算项
export function updateSalaryoptions(data) {
  return request({
    url: '/business/salaryoptions',
    method: 'put',
    data: data
  })
}

// 删除薪资计算项
export function delSalaryoptions(id) {
  return request({
    url: '/business/salaryoptions/' + id,
    method: 'delete'
  })
}

// 导出薪资计算项
export function exportSalaryoptions(query) {
  return request({
    url: '/business/salaryoptions/export',
    method: 'get',
    params: query
  })
}